package com.ibigcat.module.mdm.controller.admin.user.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.ibigcat.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static com.ibigcat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 人员分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class UserPageReqVO extends PageParam {

    @Schema(description = "人员编码")
    private String userCode;

    @Schema(description = "人员名称", example = "张三")
    private String userName;

    @Schema(description = "人员类型", example = "2")
    private String userType;

    @Schema(description = "工号")
    private String userNumber;

    @Schema(description = "联系方式")
    private String phone;

    @Schema(description = "邮箱")
    private String mail;

    @Schema(description = "入职日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] entryTime;

    @Schema(description = "身份号")
    private String idCard;

    @Schema(description = "性别")
    private Integer sex;

    @Schema(description = "所属公司", example = "6376")
    private Long companyId;

    @Schema(description = "部门主键集合，以逗号分割", example = "14303")
    private String deptId;

    @Schema(description = "登录密码")
    private String loginPwd;

    @Schema(description = "启停状态")
    private Integer disabled;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}